// store.js
import { createStore } from 'vuex';

const store = createStore({
  state: {
    inputValue: '',
  },
  mutations: {
    setInputValue(state, value) {
      state.inputValue = value;
    }
  },
  actions: {
    updateInputValue({ commit }, value) {
      commit('setInputValue', value);
    }
  }
});

export default store;
